﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.IO;
using System.Net.Sockets;
using System.Runtime.Serialization;
using Ini;

namespace SSFT
{
static class Program
{
    static MainForm form;
    static Settings settings;
	static SingleFileServer server;
	static SingleFileClient client;

	public static MainForm Form
	{
		get { return form; }
	}

	public static SingleFileServer Server
	{
		get { return server; }
	}

	public static SingleFileClient Client
	{
		get { return client; }
	}

    public static Settings Settings
    {
        get { return settings; }
    }

	/// <summary>
	/// The main entry point for the application.
	/// </summary>
	[STAThread]
	static void Main(string[] args)
    {
        settings = new Settings();
		
        server = new SingleFileServer();
		client = new SingleFileClient();

		Application.EnableVisualStyles();
		Application.SetCompatibleTextRenderingDefault(false);
		Application.Run(form = new MainForm(args));
	}
}
}
